import request from '@/utils/request'
const qs = require("qs");
 
export function communityList(id) {
  var param = {
    shopId: id
  }
  return request({
    url: '/community/list',
    method: 'get',
    params:param
  })
}


export function delObj(data) {
  return request({
    url: '/community/delete',
    method: 'get',
    params: {
      id: data
    }
  })
}


export function getObj(data) {
  return request({
    url: '/community/item',
    method: 'get',
    params: {
      id: data
    }
  })
}

export function shopSearchForDispatch(param) {
  return request({
    url: '/shop/search',
    method: 'get',
    params:param
  })
}

export function addOrUpdateCommunity(data) {
  return request({
    url: '/community/addOrUpdate',
    method: 'post',
    data
  })
}